package com.fengxing.ams.web.facade.mouble.waitingarea;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "car_waiting")
public class WaitingCarVO implements Serializable{

	private static final long serialVersionUID = 6437226392119988463L;
	@Id
	String carNumber;
	Date enterTime;
	String descTime;
	@Transient
	String encodeCarNumber;
	
	public String getEncodeCarNumber() {
		return encodeCarNumber;
	}
	public void setEncodeCarNumber(String encodeCarNumber) {
		this.encodeCarNumber = encodeCarNumber;
	}
	public String getDescTime() {
		return descTime;
	}
	public void setDescTime(String descTime) {
		this.descTime = descTime;
	}
	public String getCarNumber() {
		return carNumber;
	}
	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}
	public Date getEnterTime() {
		return enterTime;
	}
	public void setEnterTime(Date enterTime) {
		this.enterTime = enterTime;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((carNumber == null) ? 0 : carNumber.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		WaitingCarVO other = (WaitingCarVO) obj;
		if (carNumber == null) {
			if (other.carNumber != null)
				return false;
		} else if (!carNumber.equals(other.carNumber))
			return false;
		return true;
	}
	
	
}
